package com.celesea.auth.role.v1.controller.resource;

import com.celesea.auth.role.entity.Role;

/**
 * @author JackYuan
 * @create 2017-10-26 23:45
 */
public class RoleResource {
    private String id;
    private String code;
    private String name;
    private String description;
    private Integer sort;
    private Byte statusFlag;

    public RoleResource(Role role) {
        this.id = role.getId();
        this.code=role.getCode();
        this.name = role.getName();
        this.description = role.getDescription();
        this.statusFlag = role.getStatusFlag();
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
